﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;

/// <summary>
///PdaService 的摘要说明
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
//若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务，请取消对下行的注释。 
// [System.Web.Script.Services.ScriptService]
public class PdaService : System.Web.Services.WebService {

    public PdaService () {

        //如果使用设计的组件，请取消注释以下行 
        //InitializeComponent(); 
    }

    [WebMethod]
    public string HelloWorld() {
        return "Hello World";
    }


    [WebMethod(Description = "0.0登录")]
    public string Login(string xml)
    {
        return LicPdaService.MainHandler.MessageHandler(xml, "登录");
    }

    [WebMethod(Description = "2.0原料上架库位库存")]
    public string Putaway(string xml)
    {
        return LicPdaService.MainHandler.MessageHandler(xml, "原料上架库位库存");
    }

    [WebMethod(Description = "2.1原料上架分配")]
    public string Print(string xml)
    {
        return LicPdaService.MainHandler.MessageHandler(xml, "原料上架分配");
    }

    [WebMethod(Description = "3.0空箱扫描库存")]
    public string Inventory_Sum(string xml)
    {
        return LicPdaService.MainHandler.MessageHandler(xml, "空箱扫描库存");
    }

    [WebMethod(Description = "3.1空箱扫描叫料")]
    public string Order(string xml)
    {
        return LicPdaService.MainHandler.MessageHandler(xml, "空箱扫描叫料");
    }
    [WebMethod(Description = "4.0拣货库存")]
    public string PickIntory(string xml)
    {
        return LicPdaService.MainHandler.MessageHandler(xml, "拣货库存");
    }

    [WebMethod(Description = "4.1拣货确认")]
    public string PickUpdate(string xml)
    {
        return LicPdaService.MainHandler.MessageHandler(xml, "拣货确认");
    }
    [WebMethod(Description = "9.0料号有效性")]
    public string SkuCheck(string xml)
    {
        return LicPdaService.MainHandler.MessageHandler(xml, "料号有效性");
    }

    //10.0通过拣货信息-拣货扫描--生成托盘号
    [WebMethod(Description = "10.0通过拣货信息-拣货扫描--生成托盘号")]
    public string OrderOutScanning(string xml)
    {
        return LicPdaService.MainHandler.MessageHandler(xml, "调拨通用方法");
    }
}
